package com.yj.answer.mapper;

import com.yj.answer.entity.Answer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 题目 Mapper 接口
 * </p>
 *
 * @author yj
 * @since 2023-07-07
 */
public interface AnswerMapper extends BaseMapper<Answer> {

    List<Answer> RandTopics(Integer num);

    List<Answer> chapterTopics(String chapter);

    List<Answer> wrongtopic();

    void topicnum(@Param("id") long id);

    List<Answer> chapterLists(String book);

    List<String> boolLists();

    void insertAuestions(Answer answer);

    void answerLog(Long id, Integer answer);
}
